package com.baiduspring.utils.security;

/**
 * 全系统统计加密工具
 */
public class SystemSecurityEncrypt {
    private final static String salt = "\\u82df\\u5229\\u56fd\\u5bb6\\u751f\\u6b7b\\u4ee5\\uff0c\\u5c82\\u56e0\\u7978\\u798f\\u907f\\u8d8b\\u4e4b";

    public static String encrypt(String code) {
        String md5 = Md5Util.getInstance().encode(code + salt);
        String sha = SHAUtil.getInstance().encode(md5);
        return md5 + sha;
    }
}
